import { createAPI } from '@/utils/request'

export const list = data => createAPI('/users', 'get', data)
export const simple = data => createAPI('/users/simple', 'get', data)
export const add = data => createAPI('/users/', 'post', data)
export const update = data => createAPI(`/users/:${data.id}`, 'PUT', data)
export const remove = data => createAPI(`/users/${data.id}`, 'delete', data)
export const detail = data => createAPI(`/users/${data.id}`, 'get', data)

// 获取用户列表
// export const userList = params => createAPI('/users', 'get', { params })

// export const delData = data => createAPI(' /users/:id', data)
